<template>
  <!-- 百度搜索模块 -->
<!--  <div id="search">-->
<!--    <div id="search-input">-->
<!--      <a-space align="center">-->
<!--        <a-image width="150px" height="45px" src="/image/百度logo.png"/>-->
<!--        <a-input-search-->
<!--            v-model:value="inputValue"-->
<!--            placeholder="请输入搜索内容"-->
<!--            enter-button-->
<!--            @search="onSearch"-->
<!--        />-->
<!--      </a-space>-->
<!--    </div>-->
<!--  </div>-->

  <!-- 走马灯模块 -->
  <div id="carousel">
    <a-carousel arrows autoplay>
      <template #prevArrow>
        <div class="custom-slick-arrow" style="left: 10px; z-index: 1">
          <left-circle-outlined />
        </div>
      </template>
      <template #nextArrow>
        <div class="custom-slick-arrow" style="right: 10px">
          <right-circle-outlined />
        </div>
      </template>
      <div><a-image height="340px" width="640px" src="/image/励志语录1.webp"/></div>
      <div><a-image height="340px" width="640px" src="/image/励志语录2.jpg"/></div>
      <div><a-image height="340px" width="640px" src="/image/名言警句1.webp"/></div>
      <div><a-image height="320px" width="640px" src="/image/名言警句3.jpg"/></div>
    </a-carousel>
  </div>

  <!-- 编程相关网站导航 -->
  <div id="row1">
    <a-divider orientation="left"><fire-two-tone/><b>编程</b><fire-two-tone/></a-divider>
    <a-row>
      <a-col offset="1" :span="3"><a-image src="/image/giteeLogo.ico" width="15px" height="15px"></a-image>  <a href="https://gitee.com/" target="_blank">gitee</a></a-col>
      <a-col offset="1" :span="3"><a-image src="/image/prossonLogo.ico" width="15px" height="15px"></a-image>  <a href="https://www.processon.com/" target="_blank">Prosson</a></a-col>
      <a-col offset="1" :span="3"><a-image src="/image/牛客.ico" width="20px" height="20px"></a-image>  <a href="https://www.nowcoder.com/" target="_blank">牛客网</a></a-col>
      <a-col offset="1" :span="3"><a-image src="/image/leetcode.ico" width="15px" height="15px"></a-image>  <a href="https://leetcode.cn/" target="_blank">力扣</a></a-col>
      <a-col offset="1" :span="3"><a-image src="/image/bootcdn.ico" width="17px" height="17px"></a-image>  <a href="https://www.bootcdn.cn/" target="_blank">BootCDN</a></a-col>
      <a-col offset="1" :span="3"><a-image src="/image/github_Cover.jpg" width="17px" height="17px"></a-image>  <a href="https://github.com/" target="_blank">github</a></a-col>
    </a-row>

  </div>

  <!-- 学习资源网站导航 -->
  <div id="row2">
    <a-divider orientation="left"><fire-two-tone/><b>学习资源</b><fire-two-tone/></a-divider>
    <a-row id="row1-son">
      <a-col offset="1" :span="3"><a-image src="/image/bilibili.ico" width="15px" height="15px"></a-image>  <a href="https://www.bilibili.com/" target="_blank">哔哩哔哩</a></a-col>
      <a-col offset="1" :span="3"><a-image src="/image/慕课网logo.jfif" width="20px" height="20px"></a-image>  <a href="https://www.imooc.com/" target="_blank">慕课网</a></a-col>
      <a-col offset="1" :span="3"><a-image src="/image/腾讯课堂.ico" width="17px" height="17px"></a-image>  <a href="https://ke.qq.com/" target="_blank">腾讯课堂</a></a-col>
      <a-col offset="1" :span="3"><a-image src="/image/知乎.ico" width="15px" height="15px"></a-image>  <a href="https://www.zhihu.com/" target="_blank">知乎</a></a-col>
      <a-col offset="1" :span="3"><a-image src="/image/csdnLogo.png" width="15px" height="15px"></a-image>  <a href="https://www.csdn.net/" target="_blank">CSDN</a></a-col>
      <a-col offset="1" :span="3"><a-image src="/image/中国大学MOOC.jfif" width="20px" height="20px"></a-image>  <a href="https://www.icourse163.org/" target="_blank">中国大学MOOC</a></a-col>
    </a-row>
    <p></p>
    <a-row>
      <a-col offset="1" span="3"><a-image src="/image/百度logo.jpg" width="17px" height="17px"></a-image> <a href="https://www.baidu.com/">百度</a></a-col>
      <a-col offset="1" span="3"></a-col>
      <a-col offset="1" span="3"></a-col>
      <a-col offset="1" span="3"></a-col>
      <a-col offset="1" span="3"></a-col>
      <a-col offset="1" span="3"></a-col>
    </a-row>
  </div>

  <!-- 媒体版块 -->
  <!-- 学习资源网站导航 -->
  <div id="row3">
    <a-divider orientation="left"><fire-two-tone/><b>媒体</b><fire-two-tone/></a-divider>
    <a-row id="row1-son">
      <a-col offset="1" :span="3"><a-image src="/image/bilibili.ico" width="15px" height="15px"></a-image>  <a href="https://www.bilibili.com/" target="_blank">哔哩哔哩</a></a-col>
      <a-col offset="1" :span="3"><a-image src="/image/toutiaoLogo.jpg" width="23px" height="18px"></a-image>  <a href="https://www.toutiao.com/" target="_blank">今日头条</a></a-col>
      <a-col offset="1" :span="3"><a-image src="/image/cctvLogo.webp" width="17px" height="17px"></a-image>  <a href="https://www.cctv.com/" target="_blank">央视网</a></a-col>
      <a-col offset="1" :span="3"><a-image src="/image/知乎.ico" width="15px" height="15px"></a-image>  <a href="https://www.zhihu.com/" target="_blank">知乎</a></a-col>
      <a-col offset="1" :span="3"><a-image src="/image/腾讯新闻.ico" width="15px" height="15px"></a-image>  <a href="https://www.qq.com/" target="_blank">腾讯新闻</a></a-col>
      <a-col offset="1" :span="3"><a-image src="/image/weixinLogo.png" width="30px" height="20px"></a-image>  <a href="https://mp.weixin.qq.com/" target="_blank">微信公众平台</a></a-col>
    </a-row>
    <p></p>
    <a-row>
      <a-col offset="1" span="3"><a-image src="/image/百度logo.jpg" width="17px" height="17px"></a-image> <a href="https://www.baidu.com/">百度</a></a-col>
      <a-col offset="1" span="3"></a-col>
      <a-col offset="1" span="3"></a-col>
      <a-col offset="1" span="3"></a-col>
      <a-col offset="1" span="3"></a-col>
      <a-col offset="1" span="3"></a-col>
    </a-row>
  </div>
</template>

<script>
import { LeftCircleOutlined, RightCircleOutlined } from '@ant-design/icons-vue';
import {defineComponent, ref} from 'vue';
export default defineComponent({
  name:'navigation',
  components: {
    LeftCircleOutlined,
    RightCircleOutlined,
  },
  setup(){

    const inputValue = ref('');
    const onSearch = (searchValue) => {
      console.log(searchValue);
    };

    return{
      inputValue,
      onSearch
    }
  }
});

</script>

<style scoped>
/*这里虽然 :deep 报错但是好像可以正常运行？*/
.ant-carousel :deep(.slick-slide) {
  text-align: center;
  height: 300px;
  line-height: 250px;
  /*background: #364d79;*/
  background: cadetblue;
  /*background-image: url("/web/public/image/励志语录1.webp");*/
  overflow: hidden;
}

.ant-carousel :deep(.slick-arrow.custom-slick-arrow) {
  width: 25px;
  height: 25px;
  font-size: 25px;
  color: #fff;
  background-color: rgba(31, 45, 61, 0.11);
  opacity: 0.3;
  z-index: 1;
}
.ant-carousel :deep(.custom-slick-arrow:before) {
  display: none;
}
.ant-carousel :deep(.custom-slick-arrow:hover) {
  opacity: 0.5;
}

.ant-carousel :deep(.slick-slide h3) {
  color: #fff;
}

/*#content1{*/
/*  background-image: url("/web/public/image/励志语录1.webp");*/
/*}*/

#carousel{
  margin: 15px 200px 10px;
}
/*百度搜索功能样式*/
#search{
  margin: 15px 200px 10px;
  height: 125px;
  background-color: white;
}
#search-input{
  margin: 45px auto;
  width: 500px;
}

/* 编程相关网站导航样式 */
#row1{
  margin: 15px 200px 10px;
  background-color: white;
  height: 115px;
}
a{
  color: black;
}

#row2{
  margin: 15px 200px 10px;
  background-color: white;
  height: 130px;
}
#row3{
  margin: 15px 200px 10px;
  background-color: white;
  height: 130px;
}
</style>